﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="grid2.aspx.cs" Inherits="DynDns.grid2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="layout/style.css" media="all" />
    
    <!--[if gte IE 9]>
      <style type="text/css">
        .gradient {
           filter: none;
        }
      </style>
    <![endif]-->

</head>
<body>
    <form id="form1" runat="server">
    <div>

        <asp:GridView ID="GridView1" runat="server" DataSourceID="SiteMapDataSource1" Height="52px"
            Style="margin-right: 0px; margin-top: 0px; margin-left: 0px " BorderWidth="0px" GridLines="None"
            AutoGenerateColumns="false" onrowdatabound="GridView1_RowDataBound"  >
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                          <ItemTemplate>                            
                              <div class="gridHeadFont">
                                <h3><%# Eval("title")%></h3>
                              </div>                            
                          </ItemTemplate>

                        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False"
                              DataSource='<%# Eval("ChildNodes") %>' EnableModelValidation="True" 
                              BackColor="#fafae0" BorderColor="Tan" BorderWidth="1px" 
                              CellPadding="3" oreColor="Black" GridLines="None" PageSize="100" 
                              Width="700px" onrowdatabound="GridView2_RowDataBound" >
                            <AlternatingRowStyle BackColor="#f5f1c5" />
                            <Columns>
                                <asp:BoundField DataField="title" HeaderText="Beschreibung" >
                                    <ItemStyle CssClass="gridHeadSubItem"  />
                                </asp:BoundField>

                                <asp:TemplateField HeaderText="Link" ItemStyle-CssClass="gridHeadSubItem" >
                                   <ItemTemplate>
                                       <asp:HyperLink ID="HyperLinkServerUrl" ToolTip='<%# Eval("title")%>' NavigateUrl='<%# Eval("url")%>' runat="server" Target="_blank"><%# Eval("url")%></asp:HyperLink>
                                   </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Status" HeaderStyle-CssClass="gridHeadStatus" ItemStyle-CssClass="gridHeadSubItemStatus">
                                   <ItemTemplate>                                  
                                       <asp:Panel ID="PanelOnline" Visible="false" runat="server">
                                           <div class="statusOnline">&nbsp;</div>
                                       </asp:Panel>
                                       <asp:Panel ID="PanelOffLine" Visible="false" runat="server">
                                           <div class="statusOffline">&nbsp;</div>
                                       </asp:Panel>
                                   </ItemTemplate>
                                    <HeaderStyle CssClass="gridHeadStatus" />
                                </asp:TemplateField>

                            </Columns>
                            <HeaderStyle CssClass="gridHeadSubFont" />
                        </asp:GridView>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>



        <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" 
            ShowStartingNode="False" />

    </div>
    </form>
</body>
</html>
